<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>添加笔记</title>
    <style>
        #content {
            width: 400px;
            height: 200px;
        }

        .div_fu {
            display: flex;
            justify-content: center;
            align-items: center;
            height: 100vh;
        }

        header {
            display: flex;
            justify-content: center;

        }
    </style>
</head>

<body>
    <header>
        <h1>添加笔记</h1>
    </header>

    <div class="div_fu">
        <div>
            <form action="/note/add" method="post">
                <!-- csrf验证 -->
                {% csrf_token %}
                <label for="titles">主题:</label>
                <input type="text" name="titles_html" id="titles">
                <div>
                    <!-- 多行文本 -->
                    <textarea name="content_html" id="content" cols="30" rows="10"></textarea>
                </div>
                <input type="submit" value="确定提交">
                <div>
                    <h3>{{ls}}</h3>
                </div>
            </form>
        </div>
        <div>
            <a href="/note">返回列表</a>
        </div>
    </div>
</body>

</html>